const defaultState={
    produclists:{},
    id:''
   }
   
   function homeproduc(state=defaultState,action){
       console.log('actions:',action.data)
       switch(action.type){
           case 'ADD':
               return  ;
           case 'GET_DATA_PRO':
           return  Object.assign({},state,{produclists:action.data,page:action.data.page});

           case 'DELETE_LISTS_DATA':
           return Object.assign({},state,{message:action.data.message});
           default:
               return state;
           
       }
   }
   
   module.exports = homeproduc;
